﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using System.Xml.Serialization;

namespace PS.Engine.DataTypes
{
    [Serializable]
    [XmlRoot("Obstacle")]
    [XmlInclude(typeof(Vector2))]
    public class ObstacleSerializable
    {
        [XmlArray("Vertices")]
        [XmlArrayItem("Vertex")]
        public List<Vector2> Vertices { get; set; }

        public ObstacleSerializable()
        {
            Vertices = new List<Vector2>();
        }
    }
}
